package com.qin.bean;

import java.util.*;

public class Person {
    //测试集合set和List的set注入方法
    private List<String> list;//list注入 人名
    private Set<String> set;//set注入 地名
    //Map集合注入 女朋友
    private Map<Integer,String> grils;
    //Properties是属性类集合，也是Map集合
    private Properties properties;

    @Override
    public String toString() {
        return "Person{" +
                "list=" + list +
                ", set=" + set +
                ", grils=" + grils +
                ", properties=" + properties +
                '}';
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    public void setGrils(Map<Integer, String> grils) {
        this.grils = grils;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }
}
